<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0 ,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
            <title>结算页面</title>
            <link href="__MZUI__/css/amazeui.css" rel="stylesheet" type="text/css" />
            <link href="__CSS__/home/demo.css" rel="stylesheet" type="text/css" />
            <link href="__CSS__/home/cartstyle.css" rel="stylesheet" type="text/css" />
            <link href="__CSS__/home/jsstyle.css" rel="stylesheet" type="text/css" />
            <link type="text/css" href="__CSS__/home/style.css" rel="stylesheet" />
            <script type="text/javascript" src="__JQ__"></script>
            <script type="text/javascript" src="__LY__"></script>
            <script type="text/javascript" src="__JS__/public.lib.js"></script>
            <script type="text/javascript" src="__JS__/order.js"></script>
            <script type="text/javascript" src="__JS__/address.js"></script>
    </head>
    <body>
        <!--顶部导航条 -->
        <include file="Include/header" />

        <div class="clear"></div>
        <div class="concent">
        <form name="theForm" id="theForm" method="post" action="{:U('/Trader/DoNowBuy')}" onsubmit="return ordersubmit()">
            <!--地址 -->
            <div class="paycont">
                <div class="address" id="Personal_address">
                    <script type="text/javascript">
                        $(document).ready(function () {
                        $("#Personal_address").html(Aajaxobj("{:U('/Trader/reloadAddress')}"));
                        })
                    </script>
                </div>
                
                <!--订单 -->
                <div id="inventory" class="checkBox_jm">
                    <script type="text/javascript">
                        var dedede = {goods_id: {$goods_id}, goods_num:{$goods_num}, guige1:"{$guige1}", guige2:"{$guige2}"};
                        var detype = 0;
                        $(document).ready(function () {
                            var date = Aajax("{:U('/Trader/reloadGoods')}", dedede);
                            $("#inventory").html(date['html']);
                            $("#anonymous_1").html(date['voucher']);
                            $("#anonymous_2").html(date['mansong']);
                            $(".realPay-price").html(date['totalPrice']);
                            $(".realPay-price").val(date['totalPrice']);
                        })
                    </script>
                </div>
 
                <!--支付方式-->
                <div class="logistics">
                    <h3>选择支付方式</h3>
                    <ul class="pay-list">
                        <li class="pay qq selected">
                            <label for="payment_other1">
                                <input type="radio" id="payment_other1" name="payment" value="weixin" checked="checked" iscod="0" class="f_checkbox_t" />
                                <img src="__IMG__/home/weizhifu.jpg" />微信<span></span>
                            </label>
                        </li>
                        <li class="pay taobao">
                            <label for="payment_other2">
                            <input type="radio" id="payment_other2" name="payment" value="alipay" iscod="0" class="f_checkbox_t" />
                            <img src="__IMG__/home/zhifubao.jpg" />支付宝<span></span>
                        </li>
                        <li class="pay card">
                            <label for="payment_other3">
                            <input type="radio" id="payment_other3" name="payment" value="upcash" iscod="0" class="f_checkbox_t" />
                            <img src="__IMG__/home/wangyin.jpg" />银联<span></span>
                            </label>
                        </li>
                    </ul>
                </div>
                <div class="clear"></div>

                <!--信息 -->
                <div class="order-go clearfix">
                    <div class="pay-confirm clearfix">
                        <div class="box">
                            <div tabindex="0" id="holyshit267" class="realPay"><em class="t">实付款：</em>
                                <span class="price g_price ">
                                    <span>¥</span> <em class="style-large-bold-red realPay-price" id="J_ActualFee">{$totalPrice}</em>
                                </span>
                            </div>

                            <div id="confirmAddr_1" class="pay-address">
                                <script type="text/javascript">
                                    $(document).ready(function () {
                                        $("#confirmAddr_1").html(Aajaxobj("{:U('/Trader/defaultAdderss')}"));
                                    })
                                </script>
                            </div>
                        </div>

                        <div id="holyshit269" class="submitOrder">
                            <div class="go-btn-wrap">
                                <input class="ConfirmOrder" type="submit" name="submit" id="submit" value="确认订单" />
<!--                                <a id="J_Go" href="success.html" class="btn-go" tabindex="0" title="点击此按钮，提交订单">提交订单</a>-->
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </form>
        </div>
        <div class="clear"></div>
        <include file="Include/footer" />
    </body>
</html>

<script type="text/javascript">
    $(document).on('click','.createAddr',function(){
        layer.open({
            type: 2,
            area: ['500px', '400px'],
            fixed: false, //不固定
            skin: 'layui-layer-rim', //加上边框
            title: false,
            content: [homeUrl+"/Address/created",'no'],
            end: function () {
                    location.reload();
                }
        });
    });
</script>